package com.ruoyi.system.mapper;

import com.ruoyi.system.domain.JiajiaOrderSeparateAccounts;
import com.ruoyi.system.domain.vo.JiajiaOrderSeparateAccountsVo;

import java.math.BigDecimal;
import java.util.List;

/**
 * 项目Mapper接口
 * 
 * @author knd
 * @date 2021-10-13
 */
public interface JiajiaOrderSeparateAccountsMapper
{
    public List<JiajiaOrderSeparateAccountsVo>   selectJiajiaOrderSeparateAccountsList(JiajiaOrderSeparateAccounts jiajiaOrderSeparateAccounts);
    public BigDecimal sumMoney(String openid);


    /**
     * 查询订单分账流水
     *
     * @param id 订单分账流水主键
     * @return 订单分账流水
     */
    public JiajiaOrderSeparateAccounts selectJiajiaOrderSeparateAccountsById(Long id);

    /**
     * 查询订单分账流水列表
     *
     * @param jiajiaOrderSeparateAccounts 订单分账流水
     * @return 订单分账流水集合
     */
    /**
     * 新增订单分账流水
     *
     * @param jiajiaOrderSeparateAccounts 订单分账流水
     * @return 结果
     */
    public int insertJiajiaOrderSeparateAccounts(JiajiaOrderSeparateAccounts jiajiaOrderSeparateAccounts);


    /**
     * 修改订单分账流水
     *
     * @param jiajiaOrderSeparateAccounts 订单分账流水
     * @return 结果
     */
    public int updateJiajiaOrderSeparateAccounts(JiajiaOrderSeparateAccounts jiajiaOrderSeparateAccounts);

    /**
     * 删除订单分账流水
     *
     * @param id 订单分账流水主键
     * @return 结果
     */
    public int deleteJiajiaOrderSeparateAccountsById(Long id);

    /**
     * 批量删除订单分账流水
     *
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteJiajiaOrderSeparateAccountsByIds(String[] ids);

}
